const Router = require('koa-router')
const userRouter = require('./user')
const fileRouter = require('./file')
const shareRouter = require('./share')
const sourceRouter = require('./source')
const systemOptionRouter = require('./systemOption')
const depRouter = require('./department')
const roleRouter = require('./role')
const userDepRouter = require('./userDep')
const noticeRouter = require('./notice')
const scheduleRouter = require('./scheduleTask')
const storageOriginRouter = require('./storageOrigin')
const permissionRouter = require('./permission')
const logRouter = require('./log')
const overViewRouter = require('./overview')
const router = new Router({
  prefix: '/api/v1'
})

router.use('/user', userRouter.routes())
router.use('/file', fileRouter.routes())
router.use('/share', shareRouter.routes())
router.use('/source', sourceRouter.routes())
router.use('/systemOption', systemOptionRouter.routes())
router.use('/dep', depRouter.routes())
router.use('/role', roleRouter.routes())
router.use('/userDep', userDepRouter.routes())
router.use('/notice', noticeRouter.routes())
router.use('/scheduleTask', scheduleRouter.routes())
router.use('/storageOrigin', storageOriginRouter.routes())
router.use('/permission', permissionRouter.routes())
router.use('/log', logRouter.routes())
router.use('/overview', overViewRouter.routes())
module.exports = router
